package cn.itsource.easyexcel.write;

import cn.itsource.constant.Constant;
import cn.itsource.util.GenerateUserUtil;
import cn.itsource.vo.User4;
import com.alibaba.excel.EasyExcel;

public class WriteDemo9 {
    public static void main(String[] args) {
        String filename =  Constant.BATH_URL + "user9.xlsx";
        // 向Excel中写入数据
        EasyExcel.write(filename, User4.class)
                .sheet("用户信息")
                .doWrite(GenerateUserUtil.getUser4Data());
    }
}
